home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 273_01 / putca.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-26  |  360 b   |  15 lines

  1. #include <dos.h>
  2. put_ca(char ch, int attr, int count)
  3. /* This will put the specified charater and attribute on the screen at
  4.    the current cursor location.
  5. */
  6. {
  7.         union REGS inregs;
  8.         inregs.h.bh=0;
  9.         inregs.h.bl=attr;
  10.         inregs.h.al=ch;
  11.         inregs.x.cx=count;
  12.         inregs.h.ah=9;
  13.         int86(0x10,&inregs,&inregs);
  14. }
  15.